build: Print out a configuration summary
authorEmmanuele Bassi <ebassi@gnome.org>
Fri, 18 Aug 2017 15:56:09 +0000 (16:56 +0100)
committerEmmanuele Bassi <ebassi@gnome.org>
Fri, 18 Aug 2017 15:56:09 +0000 (16:56 +0100)
Add some easy to check summary of the configuration step, especially for
optional features that can use automatic discovery.

meson.build

index 8fd666512d3d38f6e2b4c2da10e1c890e05d365e..7aa4d21e8d6b95300a673033c3bf307b139c21c7 100644 (file)
@@ -599,6 +599,20 @@ if get_option('enable-documentation')
   subdir('docs/reference')
 endif
 
+summary = [
+  '',
+  '------',
+  'GTK+ @0@ (@1@)'.format(gtk_version, gtk_api_version),
+  '',
+  '  Enabled backends: @0@'.format(pkg_targets.strip()),
+  '  Documentation: @0@'.format(get_option('enable-documentation')),
+  '  Vulkan support: @0@'.format(have_vulkan),
+  '------',
+  ''
+]
+
+message('\n'.join(summary))
+
 # Keep this in sync with post-install.sh expected arguments
 meson.add_install_script('build-aux/meson/post-install.sh',
                          gtk_api_version,